<?php


namespace App\Constants;


class Order
{
    // 订单状态/0=待支付/1=已支付(待发货)/2=已发货(待收货)/3=已完成/4=退款中/5=已退款/6=取消订单/7=已关闭

    const WAIT_PAY = 0; // 待支付

    const PAID = 1; // 待发货

    const DELIVERED = 2; // 待收货

    const FINISHED = 3; // 已完成

    const REFUNDING = 4; // 退款中

    const REFUNDED = 5; // 已退款

    const CANCELLED = 6; // 取消订单

    const CLOSED = 7; // 已关闭

    const STATUS_LIST = [
      self::WAIT_PAY => '待支付',
      self::PAID => '待发货',
      self::DELIVERED => '待收货',
      self::FINISHED => '已完成',
      self::REFUNDING => '退款中',
      self::REFUNDED => '已退款',
      self::CANCELLED => '取消订单',
      self::CLOSED => '已关闭',
    ];

    const NOT_PAY = 0; // 未支付

    const ONLINE_PAY = 1; // 在线支付

    const BALANCE_PAY = 2; // 余额支付

    // 支付方式
    const PAY_WAY = [
      self::NOT_PAY => '未支付',
      self::ONLINE_PAY => '未支付',
      self::BALANCE_PAY => '未支付',
    ];

}